package sk.vasicek.drinkmanager.domain;

import java.util.Date;

public class Drink {
	public enum DrinkType {
		beer(0.05f, 0.5f), shot(0.39f, 0.05f), wine(0.16f, 0.2f);

		Drink drink;

		private DrinkType(float alcoholConcentration, float volume) {
			this.drink = new Drink(alcoholConcentration, volume);
		}

		public Drink getDrink() {
			return this.drink;
		}

	}
	float alcoholConcentration;
	float volume;

	Date timeDrinked;

	public Drink(float alcoholConcentration, float volume) {
		this.alcoholConcentration = alcoholConcentration;
		this.volume = volume;
	}
	
	public Drink(float alcoholConcentration, float commonVolume, Date timeDrinked) {
		this.alcoholConcentration = alcoholConcentration;
		this.volume = commonVolume;
		this.timeDrinked = timeDrinked;
	}

	public float getConcentration() {
		return this.alcoholConcentration;
	}

	public void setConcentration(float alcoholConcentration) {
		this.alcoholConcentration = alcoholConcentration;
	}

	public float getVolume() {
		return this.volume;
	}

	public void setVolume(float volume) {
		this.volume = volume;
	}

	public Date getTimeDrinked() {
		return this.timeDrinked;
	}

	public void setTimeDrinked(Date timeDrinked) {
		this.timeDrinked = timeDrinked;
	}

}
